Define a New Report

The reports.xml file includes report definitions for all the Mart reports. This file is available in the MartServer\WEB-INF folder. Edit this file to modify an existing report definition or add a new report definition.

Report definitions have the following characteristics:

  • Report definitions are created in XML format.
  • Reports have a unique name that identifies the report.
  • Reports are defined using XML elements.

The basic XML elements and tags are shown in the example below.

Follow these steps:

  1. Open the MartServer\WEB-INF\Reports.xml file.
  2. Enclose report definition within the <report> element.
  3. Define a name for the report within the <Name> element.
  4. Define each table that you want to include in the report. In the example below, the report is generated on the User table.
  5. Enclose the properties or columns of the required table that you want to appear in the output within the <Report_Output> element.
  6. Include all properties to report on within the <Property> element.
  7. Define each column to report on within the <Type> tag.
  8. Close all the tags.
  9. (Optional) execute this report in a web browser. Use the URL for reports described in the previous procedure.

An example of defining a report on Users is shown below:

<report>
	<Name> Users </Name>
	<User>
		<Report_Output>
			<Property>
				<Type>ID</Type>
				<Type>Username</Type>
				<Type>EmailID</Type>
				<Type>UserType</Type>
				<Type>IsInternal</Type>
				<Type>IsDeleted</Type>
			</Property>
		<Report_Output>
	</User>
</report>